{{ define "posts/update.html" }}
    {{template "public/header" .}}

    <!-- 中间内容区局 -->
    <div class="container">
        <div class="row">
            <!-- 左侧菜单区域   -->
            {{block "menu" .}}{{end}}

            <!-- 右侧内容区域 -->
            <div class="col-md-9">
                <div class="panel panel-default">
                    <div class="panel-heading">修改学生</div>
                    <div class="panel-body">
                        <form class="form-horizontal" method="post" action="/posts/updateAdd?id={{.info.ID}}">
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-5">
                                    <input type="text" name="name" value="{{.info.Name}}" class="form-control" id="name" placeholder="请输入学生姓名">
                                </div>
                                <div class="col-sm-5">
                                    <p class="form-control-static text-danger"></p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="age" class="col-sm-2 control-label">年龄</label>

                                <div class="col-sm-5">
                                    <input type="text" name="age" value="{{.info.Age}}" class="form-control" id="age" placeholder="请输入学生年龄">
                                </div>
                                <div class="col-sm-5">
                                    <p class="form-control-static text-danger"></p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-5">
                                    <label class="radio-inline">
                                        <input type="radio" name="gender" value="男" {{if eq .info.Gender "男"}} checked {{end}}> 男
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="gender" value="女" {{if eq .info.Gender "女"}} checked {{end}}> 女
                                    </label>
                                </div>
                                <div class="col-sm-5">
                                    <p class="form-control-static text-danger"></p>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

{{end}}